<template>
  <div class="my-music">
    <!-- 个人信息卡片 -->
    <div class="profile-card">
      <div class="profile-header">
        <div class="profile-avatar">
          <img src="https://picsum.photos/200/200?random=1" alt="avatar">
          <div class="online-status"></div>
        </div>
        <div class="profile-info">
          <h2 class="username">音乐爱好者</h2>
          <div class="user-tags">
            <span class="tag">音乐达人</span>
            <span class="tag">收藏家</span>
            <span class="tag">VIP会员</span>
          </div>
          <div class="user-stats">
            <div class="stat-item">
              <span class="stat-value">238</span>
              <span class="stat-label">关注</span>
            </div>
            <div class="stat-item">
              <span class="stat-value">1.2k</span>
              <span class="stat-label">粉丝</span>
            </div>
            <div class="stat-item">
              <span class="stat-value">5.8k</span>
              <span class="stat-label">收藏</span>
            </div>
          </div>
        </div>
        <div class="profile-actions">
          <button class="edit-btn">
            <i class="iconfont icon-edit"></i>
            编辑资料
          </button>
          <button class="share-btn">
            <i class="iconfont icon-share"></i>
            分享主页
          </button>
        </div>
      </div>
    </div>

    <!-- 数据概览 -->
    <div class="stats-overview">
      <div class="stat-card listening-time">
        <i class="iconfont icon-time"></i>
        <div class="stat-content">
          <h3>听歌时长</h3>
          <p class="stat-number">328<span>小时</span></p>
          <div class="progress-bar">
            <div class="progress" style="width: 75%"></div>
          </div>
          <p class="stat-desc">超过了98%的用户</p>
        </div>
      </div>
      <div class="stat-card favorite-genre">
        <i class="iconfont icon-music"></i>
        <div class="stat-content">
          <h3>最爱曲风</h3>
          <p class="stat-number">流行</p>
          <div class="genre-tags">
            <span>华语</span>
            <span>民谣</span>
            <span>摇滚</span>
          </div>
        </div>
      </div>
      <div class="stat-card active-time">
        <i class="iconfont icon-calendar"></i>
        <div class="stat-content">
          <h3>活跃天数</h3>
          <p class="stat-number">186<span>天</span></p>
          <div class="calendar-heatmap">
            <!-- 模拟活跃度热图 -->
            <div v-for="n in 7" :key="n" 
                 class="heatmap-item"
                 :style="{ opacity: Math.random() }">
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 我的收藏 -->
    <div class="my-collections">
      <h2 class="section-title">我的收藏</h2>
      
      <!-- 收藏分类标签 -->
      <div class="collection-nav">
        <div v-for="tab in collectionTabs" 
             :key="tab.id"
             :class="['nav-item', { active: currentTab === tab.id }]"
             @click="currentTab = tab.id">
          <div class="nav-icon">
            <i :class="tab.icon"></i>
          </div>
          <div class="nav-info">
            <span class="nav-name">{{ tab.name }}</span>
            <span class="nav-count">{{ tab.count }} 个收藏</span>
          </div>
          <div class="nav-indicator"></div>
        </div>
      </div>

      <!-- 收藏内容展示 -->
      <transition-group name="collection-fade" tag="div" class="collection-grid">
        <div v-for="item in currentCollections" 
             :key="item.id"
             class="collection-card"
             @mouseenter="hoveredItem = item.id"
             @mouseleave="hoveredItem = null">
          <div class="card-cover">
            <img :src="item.cover" :alt="item.name">
            <div class="cover-overlay">
              <div class="play-button">
                <i class="iconfont icon-play1"></i>
              </div>
              <div class="action-buttons">
                <button class="action-btn like">
                  <i class="iconfont icon-heart"></i>
                </button>
                <button class="action-btn add">
                  <i class="iconfont icon-add"></i>
                </button>
                <button class="action-btn share">
                  <i class="iconfont icon-share"></i>
                </button>
              </div>
            </div>
          </div>
          <div class="card-content">
            <div class="content-main">
              <h3 class="card-title">{{ item.name }}</h3>
              <p class="card-subtitle">{{ item.artist }}</p>
            </div>
            <div class="content-meta">
              <span class="meta-item">
                <i class="iconfont icon-play1"></i>
                {{ formatCount(item.playCount) }}
              </span>
              <span class="meta-item">
                <i class="iconfont icon-like"></i>
                {{ formatCount(item.likeCount) }}
              </span>
            </div>
          </div>
          <div class="card-tags" v-if="item.tags">
            <span v-for="tag in item.tags" 
                  :key="tag"
                  class="tag">{{ tag }}</span>
          </div>
        </div>
      </transition-group>

      <!-- 加载更多 -->
      <div class="load-more" v-if="currentCollections.length >= 12">
        <button class="load-more-btn" @click="loadMore">
          <span>加载更多</span>
          <i class="iconfont icon-arrow-down"></i>
        </button>
      </div>
    </div>

    <!-- 最近播放 -->
    <div class="recent-plays">
      <h2 class="section-title">最近播放</h2>
      <div class="timeline">
        <div v-for="(day, index) in recentPlays" 
             :key="index"
             class="timeline-day">
          <div class="day-header">
            <span class="day-date">{{ day.date }}</span>
            <span class="play-count">{{ day.count }}首</span>
          </div>
          <div class="day-content">
            <div v-for="song in day.songs" 
                 :key="song.id"
                 class="song-item"
                 :class="{ 'is-playing': song.isPlaying }">
              <img :src="song.cover" :alt="song.name" class="song-cover">
              <div class="song-info">
                <h4>{{ song.name }}</h4>
                <p>{{ song.artist }}</p>
              </div>
              <div class="song-duration">{{ song.duration }}</div>
              <div class="song-actions">
                <i class="iconfont icon-play1"></i>
                <i class="iconfont icon-heart"></i>
                <i class="iconfont icon-more"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 音乐雷达 -->
    <div class="music-radar">
      <h2 class="section-title">音乐品味分析</h2>
      <div class="taste-analysis">
        <!-- 左侧音乐类型卡片 -->
        <div class="taste-cards">
          <div v-for="(stat, index) in musicStats" 
               :key="index"
               class="taste-card"
               :style="{ animationDelay: `${index * 0.1}s` }"
               @mouseenter="hoveredCard = index"
               @mouseleave="hoveredCard = null">
            <div class="taste-card-inner">
              <div class="taste-icon" :style="{ background: stat.gradient }">
                <i :class="stat.icon"></i>
              </div>
              <div class="taste-info">
                <div class="taste-header">
                  <h3>{{ stat.label }}</h3>
                  <div class="taste-percentage" 
                       :class="{ 'highlight': hoveredCard === index }">
                    {{ stat.value }}%
                  </div>
                </div>
                <div class="progress-container">
                  <div class="progress-bar">
                    <div class="progress" 
                         :style="{ 
                           width: stat.value + '%',
                           background: stat.gradient
                         }">
                    </div>
                  </div>
                  <div class="progress-glow" 
                       :style="{ 
                         width: stat.value + '%',
                         background: stat.gradient,
                         opacity: hoveredCard === index ? 0.2 : 0
                       }">
                  </div>
                </div>
                <p class="taste-desc">{{ stat.description }}</p>
                <div class="taste-stats">
                  <div class="stat-item">
                    <span class="stat-value">{{ stat.songCount }}</span>
                    <span class="stat-label">已听歌曲</span>
                  </div>
                  <div class="stat-item">
                    <span class="stat-value">{{ stat.hours }}h</span>
                    <span class="stat-label">收听时长</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>

        <!-- 右侧总结和建议 -->
        <div class="taste-summary">
          <div class="summary-header">
            <div class="summary-title">
              <i class="iconfont icon-crown"></i>
              <h3>音乐品味报告</h3>
            </div>
            <div class="listening-time">
              <div class="time-circle">
                <svg viewBox="0 0 36 36">
                  <path d="M18 2.0845
                    a 15.9155 15.9155 0 0 1 0 31.831
                    a 15.9155 15.9155 0 0 1 0 -31.831"
                    fill="none"
                    stroke="#eee"
                    stroke-width="2"
                  />
                  <path d="M18 2.0845
                    a 15.9155 15.9155 0 0 1 0 31.831
                    a 15.9155 15.9155 0 0 1 0 -31.831"
                    fill="none"
                    stroke="#ff6b6b"
                    stroke-width="2"
                    stroke-dasharray="75, 100"
                  />
                </svg>
                <div class="time-info">
                  <span class="time-value">328</span>
                  <span class="time-label">小时</span>
                </div>
              </div>
              <p class="time-desc">超过了98%的用户</p>
            </div>
          </div>
          
          <div class="taste-badges">
            <div v-for="(badge, index) in badges" 
                 :key="index"
                 class="badge"
                 :style="{ animationDelay: `${index * 0.1}s` }">
              <i :class="badge.icon"></i>
              <span>{{ badge.text }}</span>
            </div>
          </div>

          <div class="taste-insights">
            <div class="insight-item">
              <i class="iconfont icon-like"></i>
              <div class="insight-content">
                <h4>最爱歌手</h4>
                <p>周杰伦 - 听过125首歌曲</p>
              </div>
            </div>
            <div class="insight-item">
              <i class="iconfont icon-calendar"></i>
              <div class="insight-content">
                <h4>最佳收听时段</h4>
                <p>晚上8点 - 10点</p>
              </div>
            </div>
          </div>

          <div class="recommendations">
            <h4>探索建议</h4>
            <p>根据你的音乐品味，建议可以探索更多电子和爵士音乐，拓展音乐视野。</p>
            <div class="genre-tags">
              <span>电子音乐</span>
              <span>爵士乐</span>
              <span>古典音乐</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MyMusic',
  data() {
    return {
      currentTab: 'songs',
      hoveredItem: null,
      collectionTabs: [
        { 
          id: 'songs', 
          name: '歌曲', 
          count: 286,
          icon: 'iconfont icon-music' 
        },
        { 
          id: 'albums', 
          name: '专辑', 
          count: 45,
          icon: 'iconfont icon-cd' 
        },
        { 
          id: 'artists', 
          name: '歌手', 
          count: 68,
          icon: 'iconfont icon-user' 
        },
        { 
          id: 'playlists', 
          name: '歌单', 
          count: 32,
          icon: 'iconfont icon-list' 
        }
      ],
      collections: {
        songs: [
          {
            id: 1,
            name: '晴天',
            artist: '周杰伦',
            cover: 'https://picsum.photos/300/300?random=1',
            playCount: 12345,
            likeCount: 2345,
            tags: ['流行', '经典', '华语']
          },
          // ... 更多歌曲
        ]
      },
      recentPlays: [
        {
          date: '今天',
          count: 12,
          songs: [
            { 
              id: 1, 
              name: '起风了', 
              artist: '买辣椒也用券', 
              cover: 'https://picsum.photos/50/50?random=1',
              duration: '03:24',
              isPlaying: true
            },
            // ... 更多歌曲
          ]
        },
        // ... 更多天数
      ],
      musicStats: [
        {
          label: '流行音乐',
          value: 85,
          gradient: 'linear-gradient(45deg, #FF6B6B, #FFE66D)',
          icon: 'iconfont icon-music',
          description: '你是流行音乐的忠实听众',
          songCount: '1,234',
          hours: 156
        },
        {
          label: '摇滚音乐',
          value: 65,
          gradient: 'linear-gradient(45deg, #4ECDC4, #45B7D1)',
          icon: 'iconfont icon-guitar',
          description: '热爱摇滚的激情音乐',
          songCount: '856',
          hours: 98
        },
        {
          label: '民谣音乐',
          value: 75,
          gradient: 'linear-gradient(45deg, #96C93D, #A8E6CF)',
          icon: 'iconfont icon-folk',
          description: '感受民谣的温暖力量',
          songCount: '945',
          hours: 112
        },
        {
          label: '电子音乐',
          value: 45,
          gradient: 'linear-gradient(45deg, #A8E6CF, #DCEDC1)',
          icon: 'iconfont icon-electronic',
          description: '正在探索电子音乐',
          songCount: '432',
          hours: 45
        }
      ],
      hoveredCard: null,
      badges: [
        { icon: 'iconfont icon-crown', text: '音乐达人' },
        { icon: 'iconfont icon-fire', text: '流行音乐控' },
        { icon: 'iconfont icon-heart', text: '摇滚爱好者' }
      ]
    }
  },
  computed: {
    currentCollections() {
      return this.collections[this.currentTab] || []
    }
  },
  methods: {
    formatCount(count) {
      if (!count) return '0';
      if (count >= 10000) {
        return (count / 10000).toFixed(1) + '万';
      }
      return count.toString();
    },
    loadMore() {
      // 实现加载更多逻辑
      console.log('Loading more...')
    }
  }
}
</script>

<style scoped>
.my-music {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 个人信息卡片样式 */
.profile-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.online-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: #4cd137;
  border: 3px solid white;
  border-radius: 50%;
}

.profile-info {
  flex: 1;
}

.username {
  font-size: 24px;
  margin-bottom: 10px;
}

.user-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  padding: 4px 12px;
  background: #f8f9fa;
  border-radius: 15px;
  font-size: 12px;
  color: #666;
}

.user-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.profile-actions {
  display: flex;
  gap: 15px;
}

.edit-btn, .share-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.edit-btn {
  background: #ff6b6b;
  color: white;
}

.share-btn {
  background: #f8f9fa;
  color: #666;
}

.edit-btn:hover, .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 数据概览样式 */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 40px;
  color: #ff6b6b;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #666;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-number span {
  font-size: 14px;
  color: #666;
  margin-left: 5px;
}

.progress-bar {
  height: 6px;
  background: #f8f9fa;
  border-radius: 3px;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #ff6b6b, #ffd93d);
  border-radius: 3px;
  transition: width 1s ease;
}

.stat-desc {
  font-size: 12px;
  color: #666;
}

.genre-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-tags span {
  padding: 4px 12px;
  background: #f8f9fa;
  border-radius: 15px;
  font-size: 12px;
  color: #666;
}

.calendar-heatmap {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.heatmap-item {
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  border-radius: 4px;
}

/* 收藏部分样式 */
.my-collections {
  margin-top: 40px;
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.collection-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-item:hover {
  transform: translateY(-2px);
  background: #f0f2f5;
}

.nav-item.active {
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  color: white;
}

.nav-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
}

.nav-icon i {
  font-size: 24px;
  color: #ff6b6b;
  transition: all 0.3s ease;
}

.nav-item.active .nav-icon i {
  color: white;
}

.nav-info {
  flex: 1;
}

.nav-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.nav-count {
  font-size: 13px;
  opacity: 0.8;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #ff6b6b;
  transition: width 0.3s ease;
}

.nav-item.active .nav-indicator {
  width: 100%;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.collection-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.collection-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-cover {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover .card-cover img {
  transform: scale(1.1);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.collection-card:hover .cover-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform: translateY(20px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.collection-card:hover .play-button {
  transform: translateY(0);
}

.play-button i {
  font-size: 24px;
  color: #ff6b6b;
  margin-left: 4px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.collection-card:hover .action-buttons {
  transform: translateY(0);
  opacity: 1;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  background: white;
}

.action-btn.like:hover {
  color: #ff6b6b;
}

.action-btn.add:hover {
  color: #4ecdc4;
}

.action-btn.share:hover {
  color: #45b7d1;
}

.card-content {
  padding: 20px;
}

.content-main {
  margin-bottom: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.card-subtitle {
  font-size: 14px;
  color: #666;
}

.content-meta {
  display: flex;
  gap: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
}

.meta-item i {
  font-size: 16px;
}

.card-tags {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #ff6b6b;
  color: white;
}

.load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 12px 30px;
  border: none;
  background: #f8f9fa;
  border-radius: 25px;
  color: #666;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.load-more-btn:hover {
  background: #ff6b6b;
  color: white;
  transform: translateY(-2px);
}

/* 动画效果 */
.collection-fade-enter-active, 
.collection-fade-leave-active {
  transition: all 0.3s ease;
}

.collection-fade-enter, 
.collection-fade-leave-to {
  opacity: 0;
  transform: translateY(30px);
}

/* 最近播放样式 */
.timeline {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-day {
  margin-bottom: 30px;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.day-date {
  font-weight: bold;
  color: #333;
}

.play-count {
  color: #666;
  font-size: 14px;
}

.song-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.song-item:hover {
  background: #f8f9fa;
}

.song-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  margin-right: 15px;
}

.song-info {
  flex: 1;
}

.song-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.song-info p {
  font-size: 12px;
  color: #666;
}

.song-duration {
  color: #999;
  font-size: 12px;
  margin-right: 20px;
}

.song-actions {
  display: flex;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.song-item:hover .song-actions {
  opacity: 1;
}

.song-actions i {
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.song-actions i:hover {
  color: #ff6b6b;
  transform: scale(1.2);
}

.is-playing {
  background: #fff5f5;
}

.is-playing .song-info h4 {
  color: #ff6b6b;
}

/* 音乐雷达样式 */
.music-radar {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.taste-analysis {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.taste-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.taste-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.taste-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.taste-card-inner {
  padding: 20px;
  display: flex;
  gap: 20px;
}

.taste-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.taste-card:hover .taste-icon {
  transform: scale(1.1) rotate(5deg);
}

.taste-info {
  flex: 1;
}

.taste-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.taste-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.taste-percentage {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  transition: all 0.3s ease;
}

.taste-percentage.highlight {
  color: #ff6b6b;
  transform: scale(1.1);
}

.progress-container {
  position: relative;
  margin-bottom: 15px;
}

.progress-bar {
  height: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-glow {
  position: absolute;
  top: -5px;
  height: 18px;
  border-radius: 9px;
  filter: blur(8px);
  transition: all 0.3s ease;
}

.taste-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.taste-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

.taste-summary {
  background: white;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-title i {
  font-size: 24px;
  color: #ff6b6b;
}

.summary-title h3 {
  font-size: 20px;
}

.listening-time {
  text-align: center;
}

.time-circle {
  width: 80px;
  height: 80px;
  position: relative;
  margin: 0 auto 10px;
}

.time-circle svg {
  transform: rotate(-90deg);
}

.time-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.time-value {
  font-size: 20px;
  font-weight: bold;
  color: #ff6b6b;
  display: block;
}

.time-label {
  font-size: 12px;
  color: #666;
}

.time-desc {
  font-size: 14px;
  color: #666;
}

.taste-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.badge i {
  color: #ff6b6b;
}

.taste-insights {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
}

.insight-item i {
  font-size: 24px;
  color: #ff6b6b;
}

.insight-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.insight-content p {
  font-size: 14px;
  color: #666;
}

.recommendations {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.recommendations h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.recommendations p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tags span {
  padding: 6px 12px;
  background: white;
  border-radius: 15px;
  font-size: 12px;
  color: #ff6b6b;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .taste-analysis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .taste-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .taste-stats {
    justify-content: center;
  }

  .summary-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}
</style> 